<?php
class delAction extends rareAction{
    public function execute(){}
    public function executeGet(){
        $id = $this->getPostParam('id',0);
        $imageDao = new DaoImage();
        $imageDao->del("id=$id");
	jsonReturn(1,'ok');  
    }
    	public function executePost(){
		//$ids = $this->getPostParam('id',array());
		$ids = trim($this->getPostParam('id',''),',');
		if($ids=='') jsonReturn(0,'错误的参数');
		
		$dao = new DaoImage();
		foreach(explode(',',$ids) as $id){
			$dao->del("id = '$id'");	
		}
		jsonReturn(1,'ok');
	}
}
?>